package kr.co.doriclassic.pro11;

public class Cylinder extends Circle {
	private double height;

	public Cylinder() {
	}

	public Cylinder(double radius) {
		super(radius);
	}

	public Cylinder(double radius, double height) {
		super(radius);
		this.height = height;
	}
	public double getHeight() {
		return height;
	}
	public double getVolume(){
		return getArea()*height;
	}

	@Override
	public String toString() {
		return "Cylinder [height=" + height + ", getHeight()=" + getHeight()
				+ ", getVolume()=" + getVolume() + ", getRadius()="
				+ getRadius() + ", getColor()=" + getColor() + ", getArea()="
				+ getArea() + "]";
	}


	
}
